package day03._03;

/**
 * <>
 * <静态内部类>
 *
 * @Author WANG.SONG.
 * @Date 2019/2/25 0025 23:23
 * @see
 */
public class InnerStaticClass {
    public static String A = "a";

    String b = "b";

    public void getSuccess(){
        System.out.println("sucess");
        System.out.println(Inner.hello);
    }
    /**
     *<静态内部类>
     * 静态内部类可以访问静态成员变量，不可用访问外部类的非静态成员变量
     *@param
     *
     *@return
     *@Author WANG.SONG.
     */
    public static class Inner{
        String aa = InnerStaticClass.A;
        private static String hello;
        public void helloWorld(){
            InnerStaticClass innerStaticClass = new InnerStaticClass();
            innerStaticClass.getSuccess();
        }
        /*String bb = b;*/
    }

    public static void main(String[] args) {
        Inner inner = new Inner();
        inner.helloWorld();
    }
}
